package com.invengo.module_check.data.entity;

import android.view.View;

import androidx.annotation.IntDef;
import androidx.annotation.StringDef;

import java.io.Serializable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

public class FeatureBean implements Serializable {
    public static final int LAYER_MODULE = 0x0001;
    public static final int FIRST_MODULE = 0x0002;
    public static final int PUBLIC_MODULE = 0x0004;


    @IntDef({LAYER_MODULE, FIRST_MODULE, PUBLIC_MODULE})
    public @interface FeatureModel {
    }

    public FeatureBean(ActionArgs actionArgs, @FeatureModel int model, boolean isOpen) {
        this.isOpen = isOpen;
        this.actionArgs = actionArgs;
        this.name = actionArgs.getName();
        this.model=model;
    }

    private boolean isOpen = true;
    private String name;
    private ActionArgs actionArgs;
    @FeatureModel
    private int model;

    public int getModel() {
        return model;
    }

    public boolean isOpen() {
        return isOpen;
    }

    public void setOpen(boolean open) {
        isOpen = open;
    }

    public String getName() {
        return name;
    }

    public ActionArgs getActionArgs() {
        return actionArgs;
    }


}
